﻿@model Tasks.UI.Models.Dict.KeyValueManageModel
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>DictManage</title>
    <link href="@Config.GetCssResourcePath("main.css")" rel="stylesheet" type="text/css" />
    <link href="@Config.GetCssResourcePath("table.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/global.js")" type="text/javascript"></script>
    <style type="text/css">
        *
        {
            margin: 0;
            padding: 0;
        }
        .container
        {
            width: 100%;
            padding: 10px 0px 0px 10px;
        }
        
        .tblStyle1 input
        {
            width: 90%;
        }
    </style>
</head>
<body>
    @using (Html.BeginForm())
    {
        <div id="container">
            <div class="navTitle">
                @Model.DictGroup.Name</div>
            @Html.OutputMessage(Model.Message, Model.MessageType)
            <table class="tblStyle1" id="tb">
                <thead>
                    <tr>
                        <th style="width: 180px">
                            名称
                        </th>
                        <th>
                            内容
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (DictValue dict in Model.Dicts)
                    { 
                        <tr>
                            <td class="info">
                                @dict.Name
                                @Html.Hidden("Name", dict.Name)
                            </td>
                            <td class="info" style="text-align: left;">
                                @Html.TextBox("Content", dict.Content)
                                @if (!string.IsNullOrEmpty(dict.Dspt))
                                {
                                    <img alt="" src="/images/icon/16x16/help2.png" title="@dict.Dspt" />
                                }
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
            <div class="BottomBtn">
                <button type="submit" class="big blue" ><span>保存</span></button>
            </div>
        </div>
    }
</body>
</html>
